//
//  PullDownMenu.h
//  PigMarket
//
//  Created by mac on 2019/5/27.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSInteger,PullDownType) {
    PullDownTypeAreaProvince = 1,
    PullDownTypeAreaCity ,
    PullDownTypeAreaDistrict,
    PullDownTypeAreaTribe,
    PullDownTypeTransicationTypes,
};

//typedef void (^SelectItemBlock)(NSString *area, NSNumber *currentId, PullDownType pullWownType);
typedef void (^SelectItemBlock)(NSString *text,NSInteger idx, PullDownType pullWownType);

@interface PullDownMenu : UIView

/**
 选择回调
 */
@property (nonatomic , copy) SelectItemBlock selectItemBlock;
+ (instancetype)sharedInstance;
- (void)showWithFrame:(CGRect)frame type:(PullDownType)type
              dataArr:(NSMutableArray *)dataArr
           completionBlock:(void(^)(NSString *text,NSInteger idx, PullDownType pullWownType))completionBlock;
- (void)hide;
@end

